package com.yin.controller;


import com.yin.service.Com_add_record_salaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 尹kk
 * @since 2021-05-24
 */
@RestController
@RequestMapping
public class Com_add_record_salaryController {

    @Autowired
    private Com_add_record_salaryService com_add_record_salaryService;

//    @RequestMapping({"/index", "/",""})
//    public ModelAndView index(){
//        ModelAndView modelAndView = new ModelAndView();
//        modelAndView.setViewName("dashboard");
//        return modelAndView;
//    }
    @GetMapping("/Com")
    public List Com_add_record_salaryController(){
        return  this.com_add_record_salaryService.list();
    }




}


